function Person(name,age){
	this.name=name;
	this.age=age;
	this.sayName=function(){
		console.log(this.name);
	}
}
var p=new Person("john",100);
console.log(p instanceof Person);